﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsFlower
{
    public partial class FormLabel : Form
    {
        public FormLabel(string label)
        {
            InitializeComponent();
            SetLabelConfig(label);
        }
        void SetLabelConfig(string label)
        {
            lbtext.Text = label;
            lbtext.Font = new Font("宋体", 14f, FontStyle.Bold);
            lbtext.TextAlign = ContentAlignment.MiddleCenter;
            lbtext.Location = new Point(
                (this.ClientSize.Width - lbtext.Width) / 2,
                lbtext.Location.Y
            );
            
        }
        private void FormLabel_Load(object sender, EventArgs e)
        {
            //Form1 form1 = new Form1();
        }

    }
}
